/*
 * Copyright [duowan.com]
 * Web Site: http://www.duowan.com
 * Since 2005 - 2014
 */

package com.duowan.realtime.model;


import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * tableName: bloomfilter_info [BloomfilterInfo] 
 * 
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */
public class BloomfilterInfo  implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * id       db_column: id 
     */ 	
	
	private java.lang.Integer id;
	
    /**
     * dbName       db_column: db_name 
     */ 	
	private java.lang.String dbName;
	
    /**
     * partition       db_column: partition 
     */ 	
	private java.lang.String partition;
	
    /**
     * createTime       db_column: create_time 
     */ 	
	private java.util.Date createTime;
	
	//columns END

	public BloomfilterInfo(){
	}

	public BloomfilterInfo(
		java.lang.Integer id
	){
		this.id = id;
	}

	public java.lang.Integer getId() {
		return this.id;
	}
	
	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.String getDbName() {
		return this.dbName;
	}
	
	public void setDbName(java.lang.String value) {
		this.dbName = value;
	}
	
	public java.lang.String getPartition() {
		return this.partition;
	}
	
	public void setPartition(java.lang.String value) {
		this.partition = value;
	}
	
	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}
	

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(this == obj) return true;
		if(obj instanceof BloomfilterInfo == false) return false;
		BloomfilterInfo other = (BloomfilterInfo)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

